package xcmg.device.dao.mapper.ratingManager;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.ratingManager.MarketDealerRatingDetailDO;
import xcmg.device.service.vo.marketing.MarketingActivityPriceVO;
import xcmg.device.service.vo.marketing.MarketingActivityVO;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface MarketDealerRatingDetailMapper {
    int deleteByPrimaryKey(String id);

    int insert(MarketDealerRatingDetailDO record);

    int insertSelective(MarketDealerRatingDetailDO record);

    MarketDealerRatingDetailDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(MarketDealerRatingDetailDO record);

    int batchInsert(@Param("recordList") List<MarketDealerRatingDetailDO> recordList );

    int delete(@Param("mainId") String mainId);

    int checkCount(@Param("mainId") String mainId,@Param("dealerOrgId") String dealerOrgId,@Param("activityId") String activityId);

    MarketingActivityPriceVO activityModel(@Param("dealerOrgId") String dealerOrgId, @Param("orgId") String orgId,
                                           @Param("materialsNo") String materialsNo, @Param("priceGroup") String priceGroup);
}